package jgl.vajra.management.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class HomeCarModelBean implements Parcelable {

    public HomeCarModelBean() {
    }

    public String model;
    public String describe;
    public String type;
    public String remark;
    public int serialNumber;
    public String fileKey;
    public boolean isClick;
    public int displayNumber;

    protected HomeCarModelBean(Parcel in) {
        model = in.readString();
        describe = in.readString();
        type = in.readString();
        remark = in.readString();
        serialNumber = in.readInt();
        fileKey = in.readString();
        isClick = in.readByte() != 0;
        displayNumber = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(model);
        dest.writeString(describe);
        dest.writeString(type);
        dest.writeString(remark);
        dest.writeInt(serialNumber);
        dest.writeString(fileKey);
        dest.writeByte((byte) (isClick ? 1 : 0));
        dest.writeInt(displayNumber);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<HomeCarModelBean> CREATOR = new Creator<HomeCarModelBean>() {
        @Override
        public HomeCarModelBean createFromParcel(Parcel in) {
            return new HomeCarModelBean(in);
        }

        @Override
        public HomeCarModelBean[] newArray(int size) {
            return new HomeCarModelBean[size];
        }
    };
}
